package com.yunxi.model.sat;

import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 客户战败申请
 * </p>
 *
 * @author caoYong
 * @since 2019-07-11
 */
@Data
@TableName("pms_sat_lost_apply")
@ApiModel(value="SatLostApply对象", description="客户战败申请")
public class SatLostApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申请ID")
    @TableId(value = "APPLY_ID", type = IdType.UUID)
    private String applyId;

    @ApiModelProperty(value = "渠道商代码")
    @TableField("PARTNER_CODE")
    private String partnerCode;

    @ApiModelProperty(value = "客户编号")
    @TableField("CUSTOMER_NO")
    private String customerNo;

    @ApiModelProperty(value = "线索ID")
    @TableField("CLUE_ID")
    private String clueId;

    @ApiModelProperty(value = "跟进id")
    @TableField("FOLLOW_ID")
    private String followId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "状态1启用0禁用")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "审批人")
    @TableField("APPROVE_USER")
    private String approveUser;

    @ApiModelProperty(value = "审批时间")
    @TableField("APPROVE_TIME")
    private Date approveTime;

    @ApiModelProperty(value = "申请单状态(Lost_ApplyStatus,1战败待审批,2同意战败,3转分配)")
    @TableField("APPLY_ORDER_STATUS")
    private Integer applyOrderStatus;

    @ApiModelProperty(value = "申请时间")
    @TableField("APPLY_TIME")
    private Date applyTime;

    @ApiModelProperty(value = "申请人")
    @TableField("APPLY_USER")
    private String applyUser;

    @ApiModelProperty(value = "申请次数")
    @TableField("APPLY_COUNT")
    private Integer applyCount;

    @ApiModelProperty(value = "分配的销售顾问编号")
    @TableField("ASSIGN_USER")
    private String assignUser;

}
